#ifndef FORGOTPASSWORDDIALOG_H
#define FORGOTPASSWORDDIALOG_H

#include <clickablelabel.h>
#include <utils.h>
#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QLabel>
#include <QVBoxLayout>
#include <QSettings>
#include <QMessageBox>
#include <cstdlib>
#include <ctime>

class ForgotPasswordDialog : public QDialog {
    Q_OBJECT

public:
    explicit ForgotPasswordDialog(QWidget *parent = nullptr);

private:
    QLineEdit *lineEditUserName;
    QLineEdit *lineEditCode;
    QPushButton *buttonSubmit;
    QString verificationCode;
    ClickableLabel *captchaLabel;

signals:
    void verificationSuccess(const QString &username);

private slots:
    void verifyCode();
    void refreshCaptcha();
};

#endif // FORGOTPASSWORDDIALOG_H
